(function () {
  const style = `<style>
    .maskPrompt {
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 9999999999;
        display: none;
      }
      .maskProCont {
        background-color: #fff;
        width: 300px;
        height: 152px;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        text-align: center;
      }
      .maskProCont h1 {
        line-height: 44px;
        font-weight: normal;
        font-size: 18px;
      }
      .maskProCont p {
        line-height: 60px;
        font-size: 14px;
      }
      .maskProContOpera {
        height: 48px;
        border-top: 1px solid #efefef;
        display: flex;
        justify-content: space-between;
        text-align: center;
      }
      .maskProContOpera a {
        display: block;
        line-height: 48px;
        width: 50%;
        font-size: 18px;
      }
      .maskProContOpera a:last-of-type {
        border-left: 1px solid #efefef;
        color: rgb(0, 122, 255);
      }
  </style>`;
  document.write(style);
  const str = `
      <div class="maskProCont">
        <h1>温馨提示</h1>
        <p>此时此刻需要您登录哦~</p>
        <div class="maskProContOpera">
          <a href="list.html">再逛会</a>
          <a href="login.html">去登录</a>
        </div>
      </div>
    `;
  const odiv = document.createElement("div");

  odiv.classList.add("maskPrompt");
  odiv.innerHTML = str;
  document.body.appendChild(odiv);
})();

//axios配置
  //根地址
axios.defaults.baseURL = "http://cba.itlike.com/public/index.php?s=/api/";